<%@ page import="vendas.Encomenda" %>



<div class="fieldcontain ${hasErrors(bean: encomendaInstance, field: 'fornecedor', 'error')} required">
	<label for="fornecedor">
		<g:message code="encomenda.fornecedor.label" default="Fornecedor" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="fornecedor" name="fornecedor.id" from="${vendas.Fornecedor.list()}" optionKey="id" required="" value="${encomendaInstance?.fornecedor?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: encomendaInstance, field: 'data', 'error')} required">
	<label for="data">
		<g:message code="encomenda.data.label" default="Data" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="data" precision="day"  value="${encomendaInstance?.data}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: encomendaInstance, field: 'itens', 'error')} ">
	<label for="itens">
		<g:message code="encomenda.itens.label" default="Itens" />
		
	</label>
	<g:select name="itens" from="${vendas.ItemEncomenda.list()}" multiple="multiple" optionKey="id" size="5" value="${encomendaInstance?.itens*.id}" class="many-to-many"/>
</div>

